# -*- coding: utf-8 -*-
from pylons import Response, c, g, cache, request, session
from pylons.controllers import WSGIController
from pylons.decorators import jsonify, validate
from pylons.templating import render, render_response
from pylons.i18n import N_, _, ungettext
from ferlons.model import meta
from ferlons.model import form
import ferlons.lib.helpers as h
#from webhelpers.rails import *
from routes import url_for
from pylons.controllers.util import abort, redirect_to, etag_cache

class BaseController(WSGIController):
    def __call__(self, environ, start_response):
        try:
            return WSGIController.__call__(self, environ, start_response)
        finally:
            meta.Session.remove()


# Include the '_' function in the public names
__all__ = [__name for __name in locals().keys() if not __name.startswith('_') \
           or __name == '_']
